/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.given.designpatterns.structural.composite;

/**
 *
 * @author bassoncj
 */
public class Leaf implements Component{
    String name;
    public Leaf(String name) {
        this.name = name;
    }

    @Override
    public void sayHello(){
       name = name + "leaf says hello";
    }

    @Override
    public void sayGoodbye(){
        name = name + "leaf says goodbye";
    }
}
